package com.demo2do.fms.queue.entity;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 *
 * @author Ark
 *
 */
public class VehicleDelete {

    /** 资产分类代码 */
    private String vehicleCls;
    
    /** 车辆id */
    private Long vamId;
    
    /** 操作人 */
    private Long operator;
    
    /** 操作时间 */
    private Date operateTime;
    
    /**
     * The default constructor
     */
    public VehicleDelete() {
    }
    
    /**
     * 是否是牵引车
     * 
     * @return
     */
    @JsonIgnore
    public boolean isTractor() {
        return StringUtils.equals("A01", vehicleCls);
    }
    
    /**
     * 是否是挂车
     * 
     * @return
     */
    @JsonIgnore
    public boolean isTrailer() {
        return StringUtils.equals("A02", vehicleCls);
    }
    
    /**
     * 是否是救援车
     * 
     * @return
     */
    @JsonIgnore
    public boolean isRescue() {
        return StringUtils.equals("A03", vehicleCls);
    }

    /**
     * @return the vehicleCls
     */
    public String getVehicleCls() {
        return vehicleCls;
    }

    /**
     * @return the vamId
     */
    public Long getVamId() {
        return vamId;
    }

    /**
     * @return the operator
     */
    public Long getOperator() {
        return operator;
    }

    /**
     * @return the operateTime
     */
    public Date getOperateTime() {
        return operateTime;
    }
    
    /**
     * @param vehicleCls the vehicleCls to set
     */
    public void setVehicleCls(String vehicleCls) {
        this.vehicleCls = vehicleCls;
    }
    
    /**
     * @param vamId the vamId to set
     */
    public void setVamId(Long vamId) {
        this.vamId = vamId;
    }

    /**
     * @param operator the operator to set
     */
    public void setOperator(Long operator) {
        this.operator = operator;
    }

    /**
     * @param operateTime the operateTime to set
     */
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }
    
}